package com.tutu.service;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface FunctionalModuleService {

    // 查询（分页）
    Map<String, Object> pageByParams(Integer type, String keyWord, Integer page, Integer limit);

    Map<String, Object> pageChildByParams(Integer functionalModuleId, String keyWord, Integer type, Integer page, Integer limit);

    // 添加 or 修改
    Map<String, Object> saveInfo(HttpServletRequest request, Integer id, Integer type, String name);

    // 删除
    Map<String, Object> deleteById(HttpServletRequest request, Integer id);

    // 删除
    Map<String, Object> updateInfo(HttpServletRequest request, Integer functionalModuleId, Integer companyId, Integer type);
}
